//LoadButtonHandler
//Timothy Grant
//CS1410
//Calculator 1410
//Final Version

package calculator1410;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.IOException;

public class LoadButtonHandler implements ActionListener {

    NumberPanel panel;

    public LoadButtonHandler(NumberPanel p) {
        this.panel = p;
    }

    public void actionPerformed(ActionEvent e) {
        try {
            this.panel.load();
        } catch (IOException ex) {
            System.out.println("Error loading file");
        }
    }//end ActionPerformed()
}
